exports.install = function(Vue, options) {
  Vue.prototype.myConfirm = function(desc, confirmCallback, params, cancelMsg) {
    this.$confirm(desc, '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    }).then(() => {
      console.log('确定哦')
      confirmCallback(params)
    }).catch(error => {
      console.log(error)
      this.$message({
        type: 'info',
        message: cancelMsg
      })
    })
  }
}
